﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using MaxStudio.Concrete.DBUtility;


namespace MaxStudio.Concrete.Server.Dao
{
    public partial class ConcreteDaoDataContext : System.Data.Linq.DataContext
    {
        #region FunctionItems 
          
       
        public List<tb_FunctionItem> getAllFuntionItems()
        {
            var query = (from obj in this.tb_FunctionItems
                         where obj.IsDelete == 0
                         select obj).ToList();
            return query;
        }

        public tb_FunctionItem getFunctionItemsByID(int ID)
        {
            return this.tb_FunctionItems.SingleOrDefault(tb_FunctionItems => tb_FunctionItems.Id == ID);
        }
        

        #endregion
    }
}
